LOCAL_LDFLAGS := -L$(PLAT_LIB_DIR) -L$(MPI_LIB_DIR)
export LOCAL_LDFLAGS

dir_y := aenc_demo
dir_y += adec_demo
dir_y += venc_demo
dir_y += hw_md_demo
#dir_y += sw_md_demo
dir_y += osd_demo

all:
	@for i in $(dir_y); \
	do \
		$(MAKE) -C $$i; \
		if [ $$? -ne 0 ];then exit 1; fi \
	done

install:
	@for i in $(dir_y); \
	do \
		$(MAKE) -C $$i install; \
	done

clean:
	@for i in $(dir_y); \
	do \
		$(MAKE) -C $$i clean; \
	done

.PHONY: all install clean
